package com.yvan.demo.web1.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.yvan.PageDb;
import com.yvan.demo.web1.dao.IdRuleMapper;
import com.yvan.demo.web1.entity.IdRule;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true)
public class IdRuleService {

    @Autowired
    private IdRuleMapper idRuleMapper;

    public List<IdRule> selectActive(PageDb pageDb) {
        return idRuleMapper.selectPage(pageDb, new EntityWrapper());
    }
}
